﻿using Infrastructure.Web;
using MyData.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MyWeb.Controllers
{
    public class WelController : BaseController
    {
        // GET: Wel
        public ActionResult Index()
        {
            ViewBag.MeetName = MeetApp.GetMeetDto(null).MeetName;
            return View();
        }
        [HttpPost]
        public JsonResult GetTime()
        {
            var result = new AjaxResult<WelDto>();
            return base.Try<WelDto>(() =>
            {
                result.data = visitorApp.GetWelDto();
            }, result);
        }
    }

}